package com.neusoft.neu24g1.his.common;

/**
 * ViewInfo 窗口视图配置信息
 *
 * @author Administrator
 * @version 2024/05/26 10:51
 **/
public class ViewInfo {
    private final  static  String  baseUrl = "controller";

    private  int width =1280;
    private int height=768;
    private String title;
    private String url;

    public ViewInfo(String viewName  , String title ) {
        this.url = baseUrl +   "/"  + viewName +"-view.fxml";
        this.title =  title;
    }

    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }

    public String getUrl() {
        return url;
    }

    public static ViewInfo registeredViewInfo(){
        return  new ViewInfo(  "registered"  ,"挂号与缴费窗口");
    }

    public String getTitle() {

        return   title;

    }
}